/*
 * Hop.cpp
 *
 *  Created on: Apr 25, 2012
 *      Author: shaohong
 */

#include "Hop.h"
#include "Utils.h"

Hop::Hop() {

}

Hop::Hop(string host, int port) {
	this->host = host;
	this->port = port;
}
Hop::~Hop() {

}

string Hop::getHost() const
{
    return host;
}

int Hop::getPort() const
{
    return port;
}

void Hop::setHost(string host)
{
    this->host = host;
}

void Hop::setPort(int port)
{
    this->port = port;
}

string Hop::toString()
{
	return host+":"+Utils::int2Str(port);
}



